const express = require("express");
const axios = require("axios");
const app = express();
app.use(express.static(__dirname));
app.get("/maoyan",(req,res)=>{
	axios.get("https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json",{
		params:{
			ct:"北京",
			ci:1,
			channelId:4
		}
	}).then(value=>{
		// console.log(value.data.data.hot);
		res.json(value.data.data.hot);
	});
})

app.listen(80,()=>{
	console.log("success");
})